﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using CompanyBussiness;

namespace Website.admin.Control
{
    public partial class cNewsDetail : System.Web.UI.UserControl
    {
        System.Web.UI.Control ct;
        HtmlGenericControl genControl;

        protected void Page_Load(object sender, EventArgs e)
        {
            PlaceHolderNews.Controls.Clear();
            genControl = new HtmlGenericControl("div");
            ct = Page.LoadControl("Control/cCreateNews.ascx");
            genControl.Controls.Add(ct);
            PlaceHolderNews.Controls.Add(genControl);

            PlaceHolderDetail.Controls.Clear();
            genControl = new HtmlGenericControl("div");
            ct = Page.LoadControl("Control/cMetadata.ascx");
            genControl.Controls.Add(ct);
            PlaceHolderDetail.Controls.Add(genControl);
        }
    }
}